package com.monee.springboot.bus.service;

import com.monee.springboot.bus.entity.City;
import com.monee.springboot.bus.entity.Student;
import com.monee.springboot.bus.mapper.TestMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TestService {

    @Resource
    private TestMapper testMapper;

    public Student test() {
        Student student = new Student();

        student.setName("monee");
        student.setNo("123456");

        return student;

    }

    public List<City> getCityList() {

        return testMapper.getCityList();
    }
}
